package errno

var (
	//common error
	OK                  = &Errno{Code: 0, Message: "ok"}
	InternalServerError = &Errno{Code: 10001, Message: "internal server error."}
	ErrBind             = &Errno{Code: 10002, Message: "Error occurred while binding the request body to the struct."}
	ErrValidation       = &Errno{Code: 20001, Message: "validation failed"}
	ErrDatabase         = &Errno{Code: 20002, Message: "database error"}
	ErrToken            = &Errno{Code: 20003, Message: "error occurred while signing the JSON web token"}
	ErrTokenExpired     = &Errno{Code: 20004, Message: "token expired"}

	//user errors
	ErrEncrypt           = &Errno{Code: 20101, Message: "error occurred while encrypting the user password"}
	ErrUserNotFound      = &Errno{Code: 20102, Message: "the user not found"}
	ErrTokenInvalid      = &Errno{Code: 20103, Message: "the token invalid"}
	ErrPasswordIncorrect = &Errno{Code: 20104, Message: "the password was incorrect"}
	ErrUserExist         = &Errno{Code: 20104, Message: "users exists"}
)
